package yunwo.cn.yzstation.presenter;

import java.util.List;

import yunwo.cn.yzstation.api.IshoudongModel;
import yunwo.cn.yzstation.api.IshoudongView;
import yunwo.cn.yzstation.base.BasePresenter;
import yunwo.cn.yzstation.bean.AssigmnetBean;
import yunwo.cn.yzstation.bean.ContinueBean;
import yunwo.cn.yzstation.bean.ItemlistBean;
import yunwo.cn.yzstation.model.ShoudongMdoel;
import yunwo.cn.yzstation.view.activity.ShoudongActivity;

/**
 * Created by lao on 2017/10/11.
 */

public class ShoudongPersenter extends BasePresenter<IshoudongView> implements IshoudongModel {

    ShoudongActivity mShoudongActivity;
    IshoudongView mIshoudongView;
    private final ShoudongMdoel mShoudongMdoel;


    public ShoudongPersenter(ShoudongActivity shoudongActivity, IshoudongView ishoudongView) {
        this.mShoudongActivity = shoudongActivity;
        this.mIshoudongView = ishoudongView;
        mShoudongMdoel = new ShoudongMdoel(shoudongActivity, this);
    }

    public void getoBtainTrack(AssigmnetBean assigmnetBean,ContinueBean.DataBean dataBean) {
        mShoudongMdoel.getoBtainTrack(assigmnetBean,dataBean);
    }

    @Override
    public void getoBtainTrackSueecss(List<ItemlistBean.DataBean> dataBeanList) {
        mIshoudongView.getoBtainTrackSueecss(dataBeanList);
    }

    @Override
    public void completeSueescc() {
        mIshoudongView.completeSueescc();
    }

    @Override
    public void getoBtainTrackfailure() {
        mIshoudongView.getoBtainTrackfailure();
    }

    @Override
    public void AddareaSuccess(String departId) {
        mIshoudongView.AddareaSuccess(departId);
    }

    @Override
    public void Addarefailure() {
        mIshoudongView.Addarefailure();
    }

    public void complete(AssigmnetBean assigmentBean, List<ItemlistBean.DataBean> selectedCollectedCars,ContinueBean.DataBean mMContinueBean) {
        mShoudongMdoel.complete(assigmentBean,selectedCollectedCars,mMContinueBean);
    }

    public void Addarea(AssigmnetBean assigmentBean, ContinueBean.DataBean mContinueBean, List<ItemlistBean.DataBean> selectedCollectedCars) {
        mShoudongMdoel.Addarea(assigmentBean,mContinueBean,selectedCollectedCars);
    }
}
